import { get, post } from '@/utils/request'

const BASE_URL = window.baseUrl.action
//  字典-获取字典信息
export function getDict(query) {
  return get(BASE_URL + '/dictItems/listByCode/', query)
}
// 涉密项目-分页查询
export function pageList(query) {
  return post(BASE_URL + '/classified/pageList', query)
}
// 涉密项目-新增
export function insert(query) {
  return post(BASE_URL + '/classified/insert', query)
}
// 涉密项目-修改
export function update(query) {
  return post(BASE_URL + '/classified/update', query)
}
// 涉密项目-详情
export function detailItem(id) {
  return get(BASE_URL + '/classified/details/' + id)
}
// 涉密项目-删除
export function deleteItem(id) {
  return get(BASE_URL + '/classified/delete/' + id)
}

// 涉密项目-总览统计
export function selectType(query) {
  return get(BASE_URL + '/classified/selectType', query)
}
// 涉密项目-查询供应商
export function selectUnitName(query) {
  return get(BASE_URL + '/classified/selectUnitName', query)
}
// 涉密项目-查询涉密应用
export function selectProductName(query) {
  return get(BASE_URL + '/classified/selectProductName', query)
}
// 涉密项目-查询服务人员
export function selectOpUser(query) {
  return get(BASE_URL + '/classified/selectOpUser', query)
}
export function listByType(code) {
  return get(BASE_URL + '/dictItems/listByCode', { code })
}